package com.example.teaching_server.repository;

import com.example.teaching_server.entity.TeacherTool;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 教师工具数据访问层
 */
@Repository
public interface TeacherToolRepository extends JpaRepository<TeacherTool, Long> {

    /**
     * 查询所有启用的工具，按排序字段升序排列
     */
    List<TeacherTool> findByIsActiveTrueOrderBySortOrderAsc();
}
